<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".settings">

    <TextView
        android:id="@+id/username_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="30dp"
        android:layout_marginTop="40dp"
        android:fontFamily="monospace"
        android:text="Username:"
        android:textColor="@android:color/white"
        android:textSize="20sp" />

    <EditText
        android:id="@+id/username"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dp"
        android:layout_marginTop="30dp"
        android:layout_toRightOf="@id/username_label"
        android:ems="10"
        android:fontFamily="monospace"
        android:inputType="textPersonName"
        android:singleLine="true"
        android:textSize="20sp" />

    <EditText
        android:id="@+id/password"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/username"
        android:layout_marginLeft="10dp"
        android:layout_marginTop="20dp"
        android:layout_toRightOf="@id/password_label"
        android:ems="10"
        android:fontFamily="monospace"
        android:inputType="textPassword"
        android:textSize="20sp" />

    <TextView
        android:id="@+id/password_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/username_label"
        android:layout_marginLeft="30dp"
        android:layout_marginTop="40dp"
        android:fontFamily="monospace"
        android:text="Password:"
        android:textColor="@android:color/white"
        android:textSize="20sp" />

    <Switch
        android:id="@+id/pass_req"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/password_label"
        android:layout_marginLeft="30dp"
        android:layout_marginTop="20dp"
        android:checked="true"
        android:fontFamily="monospace"
        android:maxWidth="200dp"
        android:maxLines="3"
        android:minLines="1"
        android:text="Password required ?  (Auth/Key) "
        android:textColor="@android:color/white"
        android:textOff="Password not needed"
        android:textOn="Password Required"
        android:textSize="12sp" />

    <Switch
        android:id="@+id/pass_key"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/password_label"
        android:layout_marginLeft="15dp"
        android:layout_marginTop="20dp"
        android:layout_toRightOf="@id/pass_req"
        android:checked="false"
        android:fontFamily="monospace"
        android:text="Key required ?"
        android:textColor="@android:color/white"
        android:textOff="Password not needed"
        android:textOn="Password Required"
        android:textSize="12sp" />

    <EditText
        android:id="@+id/pub_key_opt"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/pass_req"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="30dp"
        android:layout_marginTop="15dp"
        android:contentDescription="LOLCUNT"
        android:ems="10"
        android:gravity="start|top"
        android:hint="Copy your RSA private key here"
        android:inputType="textMultiLine"
        android:lines="20"
        android:maxLines="20"
        android:minLines="10"
        android:scrollIndicators="right"
        android:scrollbars="vertical"
        android:textColorHint="#807979"
        android:visibility="gone" />

    <Button
        android:id="@+id/confirm"
        style="@style/Widget.AppCompat.Button.Borderless.Colored"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/pub_key_opt"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="10dp"
        android:background="#E67E16"
        android:fontFamily="monospace"
        android:paddingLeft="2dp"
        android:paddingTop="5dp"
        android:paddingRight="2dp"
        android:text=".save_settings"
        android:textAlignment="center"
        android:textAppearance="@style/TextAppearance.AppCompat.Body2"
        android:textColor="#FFFFFF"
        android:textSize="24sp" />

</RelativeLayout>